package com.legendshop.openportal.sdk.model.request;

import com.legendshop.openportal.sdk.model.BaseRequest;
import com.legendshop.openportal.sdk.model.constants.ApiPathConstants;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 申请售后接口
 *
 * @author EDaoren
 */
@Data
@Accessors(chain = true)
public class AfterSaleApplyRequest extends BaseRequest {

    private static final long serialVersionUID = -3701811952564215360L;
    /**
     * 非空：是
     * 订单号
     */
    @NotBlank(message = "订单号")
    @ApiModelProperty(value = "订单号", required = true)
    @Length(max = 30, message = "订单单号要在30字符以内")
    private String subNumber;

    /**
     * 商品ID
     * 非必填，需要与skuId一起传
     */
    @ApiModelProperty("商品ID")
    private Long prodId;

    /**
     * skuId
     * 非必填，需要与商品Id一起传
     */
    @ApiModelProperty("skuId")
    private Long skuId;


    @Override
    @ApiModelProperty(hidden = true)
    public String getApiPath() {
        return ApiPathConstants.AFS_APPLY;
    }
}
